<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:jq="http://www.jquery4jsf.org/jsf"
	template="../templates/template-principale.xhtml">
	<ui:define name="title">
		<h:outputText
			value=" - Draggable - #{resource.DRAGGABLE_TITLE_CURSORSTYLE}" />
	</ui:define>
	<ui:define name="head">
		<style type="text/css">
#draggable,#draggable2,#draggable3 {
	width: 100px;
	height: 100px;
	padding: 0.5em;
	float: left;
	margin: 0 10px 10px 0;
}
</style>
		<!-- START -->
		<jq:outputScript type="text/javascript" charset="utf-8">
		jQuery(function() {
			jQuery("div, p").disableSelection();
		});
	</jq:outputScript>
		<!-- end -->
		<ui:include src="../templates/source.xhtml"></ui:include>
	</ui:define>
	<ui:define name="content">
		<h3>
			Draggable - #{resource.DRAGGABLE_TITLE_CURSORSTYLE}
		</h3>
		<p>
			#{resource.DRAGGABLE_DESCR_CURSORSTYLE}
		</p>
		<br />
		<jq:tabbedPanel>
			<jq:tabPanel tabName="Demo">
				<!-- START -->
				<jq:draggable id="draggable"
					cursorAt="{ cursor: 'move', top: 56, left: 56 }">
					<jq:paragraph>I will always stick to the center (relative to the mouse)</jq:paragraph>
				</jq:draggable>
				<jq:draggable id="draggable2"
					cursorAt="{ cursor: 'crosshair', top: -5, left: -5 }">
					<jq:paragraph>My cursor is at left -5 and top -5</jq:paragraph>
				</jq:draggable>
				<jq:draggable id="draggable3" cursorAt="{ bottom: 0 }">
					<jq:paragraph>My cursor position is only controlled for the 'bottom' value</jq:paragraph>
				</jq:draggable>
				<!-- end -->
				<ui:include src="../templates/source.xhtml"></ui:include>
			</jq:tabPanel>
			<jq:tabPanel tabName="Tag Information">
				<ui:include src="../templates/taginformation.xhtml">
					<ui:param name="tagName" value="draggable"></ui:param>
					<ui:param name="tagDefinition"
						value="#{startupBean.tagLib.tags['draggable']}"></ui:param>
				</ui:include>
			</jq:tabPanel>
		</jq:tabbedPanel>
	</ui:define>
</ui:composition>